﻿using Prism.Ioc;
using Prism.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace PrismInitialize
{
    /// <summary>
    /// 第二种启动方式 (StartUp名字没有任何要求)
    /// </summary>
    public class StartUp : PrismBootstrapper
    {
        /// <summary>
        /// 提供主窗口的对象
        /// </summary>
        /// <returns></returns>
        protected override Window CreateShell()
        {
            return new MainWindow() { Title = "Prism Start" };
        }

        /// <summary>
        /// 业务中所有需要注入的对象，在这个方法里注册 
        /// </summary>
        /// <param name="containerRegistry"></param>
        /// <exception cref="NotImplementedException"></exception>
        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }
    }
}
